import 'package:json_annotation/json_annotation.dart';

part 'relation.g.dart';
@JsonSerializable()
class Relation {
  @JsonKey(defaultValue: false)
  final bool follow;
  @JsonKey(defaultValue: false)
  final bool fan;
  @JsonKey(defaultValue: false)
  final bool black;
  @JsonKey(defaultValue: false)
  final bool friend;

  const Relation({
    required this.follow,
    required this.fan,
    required this.black,
    required this.friend,
  });

  factory Relation.fromJson(Map<String, dynamic> json) =>
      _$RelationFromJson(json);

  Map<String, dynamic> toJson() => _$RelationToJson(this);
}